package dataStructure.xmg1.a15;

import dataStructure.xmg1.a15.queue.PriorityQueue;

/**
 * @author: vince_zww
 * @date: 2021/10/28 21:18
 * @desceription:
 */
public class Main {
    public static void main(String[] args) {
        PriorityQueue<Person> queue = new PriorityQueue<>();
        queue.enQueue(new Person("Jack", 2));
        queue.enQueue(new Person("RR", 10));
        queue.enQueue(new Person("JJ", 5));
        queue.enQueue(new Person("MM", 15));


        while (!queue.isEmpty()) {
            System.out.println(queue.deQueue());

        }
    }
}
